package com.misic.wed;

import com.misic.pojo.SecnceType;
import com.misic.service.SecnceServise;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@AllArgsConstructor
public class SecnceCotroller {
    private final SecnceServise secnceServise;

    /**
     * 查询现场
     * @return
     */
    @GetMapping("/secnse")
    public  List<SecnceType> quertSencnse(){
        return secnceServise.querySecnceType();
    }

}
